﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;

namespace Repository.DAL
{
    public interface IDBFactory
    {
        DbConnection CreateConnection();
        DbCommand CreateCommand();
        string BuildParameterName(string name);
        DbParameter CreateParameter(DbCommand cmd);
        void AddParameter(DbCommand cmd,string name,DbType dbType,object value);
    }
}
